﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace SharpWeb
{
    /// <summary>
    /// 组件集合
    /// </summary>
    public class ComponentCollection : KeyedCollection<string, IComponent>
    {
        protected override string GetKeyForItem(IComponent item)
        {
            return item.ComponentName;
        }

        protected override void InsertItem(int index, IComponent item)
        {
            base.InsertItem(index, item);
        }
    } 
}
